Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update IPUtils #10844

Merged
merged 2 commits into from
Aug 11, 2023
Merged

update IPUtils #10844

merged 2 commits into from
Aug 11, 2023

Conversation

lekoala
Copy link
Contributor

@lekoala lekoala commented Jun 28, 2023

@GuySartorelli so this is the package i was talking about

ideally, it would be great to just use the new version entirely, but there are some subtle changes (like checkIP becoming checkIp... )

if at some point the symfony/http-foundation package is included, then this class can simply forward the static calls to the package class

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that this is a direct copy from https://github.com/symfony/http-foundation/blob/6.3/IpUtils.php, and that the other methods also came from that package (albeit an early version of it), I'm okay with this change.

It's being added as part of silverstripe/silverstripe-session-manager#110 so I'll hold off merging until the PR that calls this method has been created.

It would obviously be ideal to deprecate this whole class and direct people to use the symfony package itself directly instead - I'll create a new issue for that as it's not in scope for this PR. (edit: #10846)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants